package com.hand.hap.demo.workflow;

import com.hand.hap.activiti.custom.IActivitiBean;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;
import org.springframework.stereotype.Component;

/**
 * @author shuai.wang02@hand-china.com
 * @version 1.0
 * @description
 * @date 2018/8/7 15:09
 */
@Component
public class ProcessLoan implements JavaDelegate, IActivitiBean {
    @Override
    public void execute(DelegateExecution delegateExecution) {
        System.out.println("----------------------------审批通过，发放贷款=--------------------------");
        delegateExecution.setVariable("accept",Boolean.TRUE);
    }

    @Override
    public String getBeanName() {
        return "processLoan";
    }
}
